{include file="public/head"}
<body>
<header class="aui-header-default aui-header-fixed aui-header-bg">
    <a href="javascript:history.back(-1)" class="aui-header-item">
        <i class="aui-icon aui-icon-back-white"></i>
    </a>
    <div class="aui-header-center aui-header-center-clear">
        <div class="aui-header-search-box">
            <input id="name" type="text"  placeholder="商品名称" class="aui-header-search" style="padding-left: .5rem" value="{$GoodsName}">
        </div>
    </div>
    <a href="javascript:" class="aui-header-item-icon" style="padding-right: 3rem" id="search">
        <i class="aui-icon aui-icon-small-search"></i>
        <!--        <i class="aui-icon aui-icon-packet"></i>-->
        <!--        <i class="aui-icon aui-icon-member"></i>-->
    </a>
</header>
<div class="aui-content-box">
    <div class="aui-banner-content aui-fixed-top" data-aui-slider>
        <div class="aui-banner-wrapper">
            {volist name="BannerList" id="v"}
            <div class="aui-banner-wrapper-item">
                <a href="#">
                    <img src="{$v.url}">
                </a>
            </div>
            {/volist}
        </div>
        <div class="aui-banner-pagination"></div>
    </div>
    <div class="aui-dri"></div>
    <div class="aui-recommend">
<!--        <img src="__STATIC__/User/img/bg/icon-tj1.jpg" alt="">-->
        <h2>搜索结果</h2>
    </div>
    <section class="aui-list-product">
        <div class="aui-list-product-box">
            {volist name="GoodsList" id="gv"}
            <a href="{:url('Goods/GoodsDetail',array('goods_id'=>$gv.id))}" class="aui-list-product-item">
                <div class="aui-list-product-item-img">
                    <img src="{$gv.logo_url}" alt="">
                </div>
                <div class="aui-list-product-item-text">
                    <h3>{$gv.name}</h3>
                    <div class="aui-list-product-mes-box">
                        <div>
							<span class="aui-list-product-item-price">
								<em>¥</em>
								{$gv.price}
							</span>
                            <!--                            <span class="aui-list-product-item-del-price">-->
                            <!--								¥495.65-->
                            <!--							</span>-->
                        </div>
                        <!--                        <div class="aui-comment">986评论</div>-->
                    </div>
                </div>
            </a>
            {/volist}

        </div>
    </section>
</div>

<footer class="aui-footer-default aui-footer-fixed">
    <a href="{:url('Index/Index')}" class="aui-footer-item aui-footer-active">
        <span class="aui-footer-item-icon aui-icon aui-footer-icon-home"></span>
        <span class="aui-footer-item-text">首页</span>
    </a>
<!--    <a href="{:url('Goods/ClassList')}" class="aui-footer-item">-->
<!--        <span class="aui-footer-item-icon aui-icon aui-footer-icon-class"></span>-->
<!--        <span class="aui-footer-item-text">分类</span>-->
<!--    </a>-->
    <a href="{:url('Order/OrderList')}" class="aui-footer-item">
        <span class="aui-footer-item-icon aui-icon aui-footer-icon-car"></span>
        <span class="aui-footer-item-text">订单</span>
    </a>
    <a href="{:url('User/Index')}" class="aui-footer-item">
        <span class="aui-footer-item-icon aui-icon aui-footer-icon-me"></span>
        <span class="aui-footer-item-text">我的</span>
    </a>
</footer>
<script type="text/javascript" src="__STATIC__/User/js/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/User/js/aui.js"></script>
<script>
    $('#search').on('click',function () {
        var name=$("#name").val();
        if(name==""){
            alert('请输入商品名称');
        }else{
            window.location.href='/Goods/GoodsSearch/goodsname/'+name;
        }
    })
</script>
</body>
</html>